<?php

namespace Iyting\Tiktok\MiniProgram\Trade;

use Iyting\Tiktok\Kernel\BaseClient;

class Refund extends BaseClient
{

    protected  $baseUri = 'https://open.douyin.com/api/apps/trade/v2/';

    protected  $needClientToken  = true;


    public function createRefund($params)
    {
        return $this->httpPostJson('refund/create_refund',$params);
    }

    public function syncRefund($out_refund_no)
    {
        $data['out_refund_no'] = $out_refund_no;
        $data['refund_audit_status'] = 1;
        return $this->httpPostJson('refund/create_refund',$params);

    }
}